﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.SmartStorPro.Domain
{
    /// <summary>
    /// 产品类别表
    /// </summary>
    public class ProductCategories
    {
        /// <summary>
        /// 类别唯一标识--主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int CategoryID { get; set; }

        /// <summary>
        /// 类别编号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string CategoryCode { get; set; }

        /// <summary>
        /// 类别名称
        /// </summary>
        /// 
        [MaxLength(50)]
        public string CategoryName { get; set; }

        /// <summary>
        /// 上级类别ID
        /// </summary>
        public int? ParentCategoryId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }

        /// <summary>
        /// 是否删除(1-删除 0-正常)
        /// </summary>
        public bool IsDeleted { get; set; }


    }
}
